All Functions of Week 7

as.character

{base}

Coerce a vector to character

ggplot

{GGPLOT2}

Create a ggplot graph

summary

{base}

Obtain summary statistics or detailed regression output

library

{base}

Load an R package

ifelse

{base}

Return a or b depending on the value of test

geom_smooth

{GGPLOT2}

Generates a smoothed conditional means curve / line

geom_point

{GGPLOT2}

Generates a scatter plot

aes

{GGPLOT2}

Construct aesthetic mapping of a ggplot graph

theme_classic

{GGPLOT2}

A minimalistic theme with no gridlines

c

{base}

Combine values/vectors into a vector

read_dta

{haven}

Read a .dta file (Stata data)

scale_y_continuous

{GGPLOT2}

Customise continuous y axis

setwd

{base}

Set Working Directory

lm

{base}

Fit a linear model

as.numeric

{base}

Coerce a vector to numeric

scale_x_continuous

{GGPLOT2}

Customise continuous x axis

The end!